﻿using System.Collections.Generic;
using VoiceAI;
using VoiceAI.VoiceResponse;
using Windows.Foundation.Collections;
using XiaoweiV2;
using XiaoweiV2.ResponseDataTypes;

namespace XiaoweiVoiceAI.ResponseCreators
{
    internal static class PCControlResponseCreatorForLockScreen
    {
        private class PCControlResponse : IPCControlResponseData
        {
            public PCControlType Type => PCControlType.Lockscreen;

            public double Value => 0;

            public VoiceAI.ResponseType ResponseType => VoiceAI.ResponseType.PCControl;

            public ErrorCode ErrorCode => ErrorCode.NoError;

            public string RequestText { get; set; }

            public string ResponseText { get; set; }

            public string TTSUrl { get; set; }

            public bool RestoreInHistory => true;

            public object DataContext { get; set; }
        }
        public static IResponseData CreateResponseData(XiaoweiVoiceAI xiaoweiVoiceAI, ResponseParam param)
        {
            PCControlResponse pCControlResponse = new PCControlResponse();
            pCControlResponse.RequestText = param.RequestText;
            pCControlResponse.ResponseText = "好的";
            pCControlResponse.TTSUrl = xiaoweiVoiceAI.TextToVoice("好的");
            return pCControlResponse;
        }
    }
}
